package com.taomeishu.mailcrazy.checkers;

import com.taomeishu.mailcrazy.AbstractMailExistChecker;
import com.taomeishu.mailcrazy.checkers.hotmail.HotmailResultParser;
import com.taomeishu.mailcrazy.parser.ResultParser;

public class HotmailMailExistChecker extends AbstractMailExistChecker {

	private String baseUrl = "https://accountservices.passport.net/pp1300/memberexists.srf?x=";
	
	private HotmailResultParser hotmailResultParser = new HotmailResultParser();
	
	@Override
	protected String makeRequestUrl(String username, String domainName) {
		return baseUrl + System.currentTimeMillis();
	}

	@Override
	protected ResultParser getResultParser() {
		return hotmailResultParser;
	}

	@Override
	protected String getCookies(String username, String domainName) {
		return "MSPMemberExists="+ username +"@" + domainName;
	}

	@Override
	protected String getReferer() {
		return "https://accountservices.passport.net/reg.srf?roid=2&ru&sl=1&lc=2052";
	}

}
